{$CLEO .cs}
:Partcl_Playmode_1_or_2
03A4: name_thread 'PRT'
//Playmode 1 or 2 are durable till the will be removed (delete_particle)
//can cause bugs and trail by speed if attached to vehicle

:Partcl_01
0001: wait  0 ms
00D6: if 0
0256: player $PLAYER_CHAR defined
004D: jump_if_false @Partcl_01
if
0AB0:   key_pressed 2//-----------------------press right mouse button 
004D: jump_if_false @Partcl_01
04C4: create_coordinate 1@ 2@ 3@ from_actor $PLAYER_ACTOR offset 0.0 3.5  0.3
064B: 7@ = create_particle "fire"  at 1@ 2@ 3@ type 4 
064C: make_particle 7@ visible 
0001: wait  1000 ms

:Partcl_03
0001: wait  0 ms
00D6: if 0
0256: player $PLAYER_CHAR defined
004D: jump_if_false @Partcl_03
if
0AB0:   key_pressed 2//-----------------------press right mouse button
004D: jump_if_false @Partcl_03
0650: delete_particle 7@  
0001: wait  1000 ms
0002: jump @Partcl_01